home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / info.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  3.2 KB  |  90 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // <!--Copyright (c) 2005 Pure Networks Inc.  All rights reserved.-->
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Build: 3.0.6121.0 (Stable)
  7. // $Revision: #1 $
  8. //
  9. ////////////////////////////////////////////////////////////////////////////////
  10. // USAGE:
  11. // GET Parameter "type" defines what type of info will be show:
  12. //    phpinfo: presents phpinfo() to the screen
  13. // GET parameter "presentation" determines if the header/footer, etc will be shown:
  14. //    if set to "false" it will not be shown.
  15. //    -- useful if the automated info you're showing screws with the CSS as phpinfo would
  16. //       do by default if this were not used
  17. ////////////////////////////////////////////////////////////////////////////////
  18. $sNavLocation = "debug";
  19. require "_session_common.php";
  20.     
  21. if ($bLoggedIn)
  22. {
  23.     if ($_GET['presentation'] != "false")
  24.     {
  25.         require "_header.php";
  26. ?>
  27.     <table cellspacing="0" cellpadding="0" border="0" width="100%">
  28.         <tr>
  29.             <td  width="100%" valign="top">
  30.                 <!-- Start Folder view table -->
  31.                     <table cellspacing="0" cellpadding="0" border="0" class="ContentTable" width="98%"> 
  32.                         <tr>
  33.                             <td class="ContentTableTL"><div> </div></td>
  34.                             <td class="ContentTableTM2"> </td>
  35.                             <td class="ContentTableTR"><div> </div></td>
  36.                         </tr>
  37.                         <tr>
  38.                             <td class="ContentTableML"><div> </div></td>
  39.                             <td class="ContentTableMM">
  40.                                 <div class="ShareContents">
  41. <?php
  42.     }
  43.     switch($_GET['type'])
  44.     {
  45.         case "phpinfo":
  46.             if ($_GET['presentation'] != "false")
  47.             {
  48.                 echo ("<iframe width=\"98%\" height=\"500\" src=\"/info.php?type=phpinfo&presentation=false\">");
  49.                 echo ("</iframe>");
  50.             }
  51.             else
  52.             {
  53.                 phpinfo();
  54.             }
  55.             break;
  56.         default:
  57.             // nothign yet...
  58.     }
  59.     if ($_GET['presentation'] != "false")
  60.     {
  61. ?>
  62.                                 </div> <!--ShareContents-->
  63.                             </td>
  64.                             <td class="ContentTableMR"> </td>
  65.                         </tr>
  66.                         <tr>
  67.                             <td class="ContentTableBL"> </td>
  68.                             <td class="ContentTableBM"> </td>
  69.                             <td class="ContentTableBR"> </td>
  70.                         </tr>
  71.                     </table> <!-- End Folder View Table -->
  72.                 </td>
  73.                 <td valign="top">
  74. <?php
  75.         require "panels.php";
  76. ?>
  77.                 </td>
  78.             </tr>
  79.         </table>
  80. <?php 
  81.         require "_footer.php";
  82.     }
  83. }
  84. else
  85. {
  86.     log_activity("Attempted access to debug info w/o session", "error", return_error_text(125, "", $arErrors));
  87.     gotoAbs('/error/125');
  88.     exit();
  89. }
  90. ?>